import time

# 方法1
from selenium import webdriver
from selenium.webdriver.chrome.service import Service
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.remote.switch_to import SwitchTo

# 引入action chains
from selenium.webdriver.common.action_chains import ActionChains

wd = webdriver.Chrome(service=Service(".\chromedriver_win136.exe"))
wd.implicitly_wait(10)
wd.get("https://playtictactoe.org/")

pos = wd.find_element(By.CSS_SELECTOR, ".board > div:nth-child(5)")
pos.click()

time.sleep(3)
